package io.renren.modules.report.controller;


import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.common.utils.R;
import io.renren.modules.jxgk.entity.ClassAttendenceInfoEntity;
import io.renren.modules.report.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/report")
public class ReportController {

    @Autowired
    ReportService reportService;
    @RequestMapping("getZhenduanReport")
    public R list(@RequestParam Map<String, Object> params){
        //查询列表数据
        Map result =reportService.getResult(params);

        return R.ok().put("data", result);
    }
    @RequestMapping("getZhenduanShekeJiChuReport")
    public R getZhenduanShekeJiChuReport(@RequestParam Map<String, Object> params){
        //查询列表数据
        Map result =reportService.getShekeJiChuResult(params);

        return R.ok().put("data", result);
    }
}
